import service from '@/utils/request'

// @Tags ProductStylesColor
// @Summary 创建款式资讯-颜色
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProductStylesColor true "创建款式资讯-颜色"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /productStylesColor/createProductStylesColor [post]
export const createProductStylesColor = (data) => {
  return service({
    url: '/productStylesColor/createProductStylesColor',
    method: 'post',
    data
  })
}

// @Tags ProductStylesColor
// @Summary 删除款式资讯-颜色
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProductStylesColor true "删除款式资讯-颜色"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /productStylesColor/deleteProductStylesColor [delete]
export const deleteProductStylesColor = (params) => {
  return service({
    url: '/productStylesColor/deleteProductStylesColor',
    method: 'delete',
    params
  })
}

// @Tags ProductStylesColor
// @Summary 批量删除款式资讯-颜色
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除款式资讯-颜色"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /productStylesColor/deleteProductStylesColor [delete]
export const deleteProductStylesColorByIds = (params) => {
  return service({
    url: '/productStylesColor/deleteProductStylesColorByIds',
    method: 'delete',
    params
  })
}

// @Tags ProductStylesColor
// @Summary 更新款式资讯-颜色
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProductStylesColor true "更新款式资讯-颜色"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /productStylesColor/updateProductStylesColor [put]
export const updateProductStylesColor = (data) => {
  return service({
    url: '/productStylesColor/updateProductStylesColor',
    method: 'put',
    data
  })
}

// @Tags ProductStylesColor
// @Summary 用id查询款式资讯-颜色
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.ProductStylesColor true "用id查询款式资讯-颜色"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /productStylesColor/findProductStylesColor [get]
export const findProductStylesColor = (params) => {
  return service({
    url: '/productStylesColor/findProductStylesColor',
    method: 'get',
    params
  })
}

// @Tags ProductStylesColor
// @Summary 分页获取款式资讯-颜色列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取款式资讯-颜色列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /productStylesColor/getProductStylesColorList [get]
export const getProductStylesColorList = (params) => {
  return service({
    url: '/productStylesColor/getProductStylesColorList',
    method: 'get',
    params
  })
}
